﻿using PatientManagement.BLL.Interfaces;
using PatientManagement.Common.ObjectModels;
using PatientManagement.DAL.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PatientManagement.BLL.ServiceProvider
{
    public class ServiceProvider : IPatientServiceProvider
    {
        private IDataAccessLayer m_DataAccessLayer;

        public ServiceProvider(IDataAccessLayer dataAccessLayer = null)
        {
            if (dataAccessLayer != null)
            {
                m_DataAccessLayer = dataAccessLayer;
            }
        }

        public bool AddPatient(Patient patient)
        {
            return m_DataAccessLayer.AddPatient(patient);
        }          

        public IList<Patient> SearchPatientByName(string name)
        {
            throw new NotImplementedException();
        }

        public IList<Patient> SearchPatientByBirthday(DateTime birthday)
        {
            throw new NotImplementedException();
        }

        public bool RemovePatient(int id)
        {
            throw new NotImplementedException();
        }

        public IList<Patient> GetAllPatients()
        {
            throw new NotImplementedException();
        }
    }
}
